import { request } from '@/common/request.js'

// 获取banner图
export function getbannerList(data) {
  return request({
    url: `car/banner_list`,
    method: 'post',
	data,
  })
}
// 接单动态
export function getReceiveOrderList(data) {
  return request({
    url: `order/receive_order_list`,
    method: 'post',
	data,
  })
}
// 施工类型
export function getConList(data) {
  return request({
    url: `car/con_list`,
    method: 'post',
	data,
  })
}
// 实施案例
export function getOrderList(data) {
  return request({
    url: `order/order_list`,
    method: 'post',
	data,
  })
}
//编辑门店
export function editShop(data) {
  return request({
    url: `shop/edit_shop`,
    method: 'post',
	data,
  })
}
//我的门店
export function getMyShop(data) {
  return request({
    url: `shop/my_shop`,
    method: 'post',
	data,
  })
}
//车辆品牌
export function getCarBrandList(data) {
  return request({
    url: `car/car_brand_list`,
    method: 'post',
	data,
  })
}
//车辆型号
export function getCarTypeList(data) {
  return request({
    url: `car/car_type_list`,
    method: 'post',
	data,
  })
}
//局部部位
export function getCarPartList(data) {
  return request({
    url: `car/con_part_list`,
    method: 'post',
	data,
  })
}
//提交订单
export function addOrder(data) {
  return request({
    url: `order/add_order`,
    method: 'post',
	data,
  })
}
//查询优惠券
export function haveCoupon(data) {
  return request({
    url: `car/have_coupon`,
    method: 'post',
	data,
  })
}
//领取优惠券
export function receiveCoupon(data) {
  return request({
    url: `car/receive_coupon`,
    method: 'post',
	data,
  })
}
//我的优惠券
export function getMyCoupon(data) {
  return request({
    url: `car/my_coupon`,
    method: 'post',
	data,
  })
}
//我的订单
export function getMyOrderList(data) {
  return request({
    url: `order/my_order_list`,
    method: 'post',
	data,
  })
}
//编辑认证
export function editWorker(data) {
  return request({
    url: `worker/edit_worker`,
    method: 'post',
	data,
  })
}
//我的认知
export function getMyWorker(data) {
  return request({
    url: `worker/my_worker`,
    method: 'post',
	data,
  })
}
//订单详情
export function getOrderDetail(data) {
  return request({
    url: `order/order_detail`,
    method: 'post',
	data,
  })
}
//技师订单
export function getWorkerOrderList(data) {
  return request({
    url: `order/worker_order_list`,
    method: 'post',
	data,
  })
}
//上传照片
export function uploadImages(data) {
  return request({
    url: `order/upload_images`,
    method: 'post',
	data,
  })
}
//支付尾款
export function goPay(data) {
  return request({
    url: `order/online_pay`,
    method: 'post',
	data,
  })
}
//微信登录
export function wxLogin(data) {
  return request({
    url: `user/wxPhoneLogin`,
    method: 'post',
	data,
  })
}
//用户信息
export function getUserInfo(data) {
  return request({
    url: `user/getUserInfo`,
    method: 'post',
	data,
  })
}

//体现日志
export function getWithdrawLog(data) {
  return request({
    url: `withdraw/withdrawLog`,
    method: 'post',
	data,
  })
}
//提现申请
export function goWithdraw(data) {
  return request({
    url: `withdraw/withdraw`,
    method: 'post',
	data,
  })
}
//意见反馈
export function feedback(data) {
  return request({
    url: `user/feedback`,
    method: 'post',
	data,
  })
}
//协议
export function getArticle(data) {
  return request({
    url: `index/article`,
    method: 'post',
	data,
  })
}
//协议
export function getCon(data) {
  return request({
    url: `car/get_con`,
    method: 'post',
	data,
  })
}
//质保录入
export function addWarranty(data) {
  return request({
    url: `warranty/add_warranty`,
    method: 'post',
	data,
  })
}
//质保查询
export function warrantySearch(data) {
  return request({
    url: `warranty/warranty_search`,
    method: 'post',
	data,
  })
}